package com.app.repository.interfaces;

import com.app.model.main.CommentsOfComments;

import java.util.List;

public interface CommentsOfCommentsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CommentsOfComments record);

    int insertSelective(CommentsOfComments record);

    CommentsOfComments selectByPrimaryKey(Long id);

    CommentsOfComments selectByParam(long userId, String time);

    int updateByPrimaryKeySelective(CommentsOfComments record);

    int updateByPrimaryKeyWithBLOBs(CommentsOfComments record);

    int updateByPrimaryKey(CommentsOfComments record);

    List<CommentsOfComments> getListOrderedByIdDESC(long commentsv1Id, long lastId, int page, int number);

    List<CommentsOfComments> getListOrderedByIdASC(long commentsv1Id, long lastId, int page, int number);

    long getCommentsv2Number(long commentsv1Id);

    long getMaxId();

    List<CommentsOfComments> getListByUserId(long userId);
}